package symbol;

import java.util.ArrayList;

public class SymbolBlock {
    public ArrayList<Symbol> symbols;
    public SymbolBlock parentBlock;
    private final ArrayList<SymbolBlock> childBlocks;

    public SymbolBlock(SymbolBlock parent) {
        symbols = new ArrayList<>();
        childBlocks = new ArrayList<>();
        this.parentBlock = parent;
    }

    public void addChildBlock(SymbolBlock childBlock) {
        childBlocks.add(childBlock);
    }

    public ArrayList<SymbolBlock> getChildBlocks() {
        return childBlocks;
    }

    public void addSymbol(Symbol symbol) {
        symbols.add(symbol);
    }

}
